package com.icoolkj.ms.pay.service;

import com.icoolkj.ms.api.pay.model.PayOrder;
import java.util.Map;

public interface PayService {
    /**
     * 创建支付订单
     */
    Map<String, String> createOrder(PayOrder payOrder);

    /**
     * 处理支付回调
     */
    boolean handlePayNotify(String payType, Map<String, String> params);

    /**
     * 查询支付订单
     */
    PayOrder queryOrder(String orderNo);

    /**
     * 关闭支付订单
     */
    boolean closeOrder(String orderNo);

    /**
     * 退款
     */
    boolean refund(String orderNo, String refundReason);
} 